package com.qutan.app.core.repository;

import com.qutan.app.core.domain.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by pwy on 16/5/15
 */
@Repository
public interface UserInfoRepository extends JpaRepository<UserInfo, Long>, JpaSpecificationExecutor {

    UserInfo findByUsernameAndPassword(String username, String password);

    UserInfo findByUsername(String username);

    List<UserInfo>findByTel(String tel);

    UserInfo findByOpenId(String  userId);

}